<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<link rel="stylesheet" href="../style/journal.css" type="text/css" />
<style type="text/css"><!--
.googleadsense {
	margin: 2px;
	padding: 0px;
//--></style><script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-65008-1";
urchinTracker();
</script><title>rt.cpan.org: Bug</title>
</head>
<body>
<a href="index.html">Journal</a>(2005) | <a href="../blog/"><b>Blog</b></a>(2006) | <a href="http://www.fayland.org/cgi-bin/random_link.pl">RandomLink</a> | <a href="AboutFayland.html">WhoAmI</a> | <a href="LiveBookmark.html">LiveBookmark</a> | <a href="http://www.fayland.org/">HomePage</a>
<p><&lt;Previous: <a href="Synopsis11.html">纲要十一：模块</a>&nbsp;&nbsp;>>Next: <a href="2utf8.html">批量转网页编码</a></p>
<h1>rt.cpan.org: Bug</h1>
<div class='content'>
<p>Category: <a href='Diary.html'>Diary</a> &nbsp; Keywords: <b>bug rt.cpan.org</b></p>yap, <a href='http://rt.cpan.org'>rt.cpan.org</a> is a bug tracing system to all CPAN modules.<br>
If u are a module author, you should fix the bugs if they exist.<br>
If u are a perlmonk and find some errors when u use some module, u can report a bug on rt.cpan<p>

Today, the two situations occurred to me.<p>

I submitted a bug to Perl6-Pugs.<br>
<a href='http://rt.cpan.org/NoAuth/Bug.html?id=11875'>http://rt.cpan.org/NoAuth/Bug.html?id=11875</a><br>
It's a installation problem. when I 'svn up', and type 'perl makefile.PL', it always return:
<pre>
Can't generate the correct Perl6 equivalent for:

    C:\usr\lib

field name: archlib
osname: MSWin32

Please notify the maintainer of this code. (Brian Ingerson for now)
</pre>
another weird problem. (See <a href='050308.html'>weird thing with nmake pugs</a>)<br>
Autrijus replies:
<pre>
Hi.  It happens because C:\usr\lib did not contain "perl" in it, so
Pugs was confused.  Cc'ing ingy for discussions -- maybe just append
"perl6" to it? maybe prompt?

Thanks,
/Autrijus/
</pre>
But I think there is another reason causes my problem. forget it for now.<p>

several hours later, I got a email from 'Adam Kennedy':<Br>
<a href='http://rt.cpan.org/NoAuth/Bug.html?id=11876'>http://rt.cpan.org/NoAuth/Bug.html?id=11876</a>
<pre>
Fayland

I have just filed an RT bug against China::IdentityCard::Validate 
regarding it's name, which is unusual and quite out of place.

Countries to not have top level CPAN namespaces.

Must number modules like yours currently exist in the Business:: 
namespace, which you result in your module being better named.

Business::CN::IdentityCard

If I can also recommend another thing, you should consider not exporting 
the function by default, and moving to more of a hybrid style 
object/functional structure so that the module can be used very very 
flexibly, and so that you can create IdentityCard objects as well.

For an example of a _very_ similar module which wraps the same sort of 
functionality in a much more flexible "package", see

Business::AU::ABN

Feel free to copy as much of it as you wish.

Adam Kennedy
</pre>
It's concerning with my easy module 'China::IdentityCard::Validate'.<br>
I followed his advice, and upload new '<a href='IDCardValidate.html'>Business::CN::IdentityCard</a>' to <a href='http://pause.perl.org'>pause</a> and delete the old modules.<br>
I tried to modify my module as what he said. but I give up finally, because it's too complex to this easy module.<br>
OO-structure is just too much code to write. I don't like it. :(<br>
Maybe I'll rewrite it later.<p>

God bless me.</div>
<p><&lt;Previous: <a href="Synopsis11.html">纲要十一：模块</a>&nbsp;&nbsp;>>Next: <a href="2utf8.html">批量转网页编码</a></p>
<p><strong>Options:</strong> <a href='http://del.icio.us/post?title=rt.cpan.org:%20Bug&url=http://www.fayland.org/journal/050315.html'>+Del.icio.us</a></p>
<strong>Related items</strong>
<ul><li><a href='bugzilla.html'>在 Win32 下安装 Bugzilla</a> < <span class='digit'>2005-03-03 20:32:01</span> ></li></ul>
Created on <span class="digit">2005-03-15 22:18:50</span>, Last modified on <span class="digit">2005-05-20 23:51:25</span><br />
Copyright 2004-2005 All Rights Reserved. Powered by <a href="Eplanet.html">Eplanet</a> && <a href='http://catalyst.perl.org'>Catalyst</a> 5.62.
</body>
</html>